package org.lanqiao.tjut.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.lanqiao.tjut.bean.AnnounceEntity;
import org.lanqiao.tjut.bean.ClientEntity;
import org.lanqiao.tjut.bean.PaysEntity;
import org.lanqiao.tjut.bean.UsersEntity;
import org.lanqiao.tjut.dao.IUsersDao;
import org.lanqiao.tjut.service.IUserInfoService;
import org.springframework.stereotype.Service;

@Service("userService")
public class UserInfoService implements IUserInfoService {
	// 组合到层对象，进行依赖注入
	// 组合service层，依赖注入
	@Resource
	private IUsersDao userDao;
	
	@Override
	public List<UsersEntity> selectUsersInfo4Login(UsersEntity userE) {
		// 调用dao进行业务逻辑处理
		return userDao.selectUsersInfo4Login(userE);
	}

	@Override
	public List<UsersEntity> selectUsersInfoByParas(UsersEntity userE) {
		// TODO Auto-generated method stub
		return userDao.selectUsersInfoByParas(userE);
	}

	@Override
	public int saveUserInfo(UsersEntity userE) {
		// TODO Auto-generated method stub
		return userDao.saveUserInfo(userE);
	}

	@Override
	public List<UsersEntity> selectUsersInfo(UsersEntity userE) {
		// TODO Auto-generated method stub
		return userDao.selectUsersInfo(userE);
	}

	@Override
	public UsersEntity getUserInfoById(String uid) {
		// TODO Auto-generated method stub
		return userDao.getUserInfoById(uid);
	}

	@Override
	public int editUserInfo(UsersEntity userE) {
		// TODO Auto-generated method stub
		return userDao.editUserInfo(userE);
	}

	@Override
	public int deleteUserInfo(String uid) {
		// TODO Auto-generated method stub
		return userDao.deleteUserInfo(uid);
	}

	@Override
	public List<ClientEntity> selectClientInfoByParas(ClientEntity cliE, UsersEntity userE) {
		// TODO Auto-generated method stub
		return userDao.selectClientInfoByParas(cliE, userE);
	}

	@Override
	public ClientEntity getClientInfoById(String uid) {
		// TODO Auto-generated method stub
		return userDao.getClientInfoById(uid);
	}

	@Override
	public int editClientInfo(ClientEntity cliE) {
		// TODO Auto-generated method stub
		return userDao.editClientInfo(cliE);
	}

	@Override
	public List<ClientEntity> selectClientInfo(ClientEntity cliE) {
		// TODO Auto-generated method stub
		return userDao.selectClientInfo(cliE);
	}

	@Override
	public int savePayInfo(PaysEntity payE) {
		// TODO Auto-generated method stub
		return userDao.savePayInfo(payE);
	}

	@Override
	public List<PaysEntity> selectPayInfo(PaysEntity payE) {
		// TODO Auto-generated method stub
		return userDao.selectPayInfo(payE);
	}

	@Override
	public List<PaysEntity> selectPayInfoByParas(PaysEntity payE) {
		// TODO Auto-generated method stub
		return userDao.selectPayInfoByParas(payE);
	}

	@Override
	public int addAnnounceInfo(AnnounceEntity anE) {
		// TODO Auto-generated method stub
		return userDao.addAnnounceInfo(anE);
	}

	@Override
	public List<AnnounceEntity> contentInfo() {
		// TODO Auto-generated method stub
		return userDao.contentInfo();
	}

	@Override
	public List<AnnounceEntity> contentAllInfo() {
		// TODO Auto-generated method stub
		return userDao.contentAllInfo();
	}

	
}
